<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- v-bind缩写 -->
    <!--完整语法-->
    <!-- <a v-bind:href="url">测试</a> -->
    <!--缩写-->
    <!-- <a :href="url">测试</a> -->
    <!-- v-on缩写 -->
    <!--完整语法-->
    <!-- <a v-on:click="doSomething">修改</a> -->
    <!--缩写-->
    <!-- <a @click="doSomething">修改</a> -->
    <div id="app">{{hello}}</div>
    <script src="./js/vue.js"></script>
    <script>
        var a = new Vue({
            el: '#app',
            data: {
                hello: 'helloworld'
            }
        })
    </script>
</body>

</html>